﻿using System;
using System.Drawing;

namespace YRevitJig
{
	public class XDrawable2D
	{
		public virtual void Draw(XGraphics g)
		{
		}

		public static int GetDistance(System.Drawing.Point pt1, System.Drawing.Point pt2)
		{
			try
			{
				return (int)Math.Sqrt(Math.Pow((double)(pt1.X - pt2.X), 2.0) + Math.Pow((double)(pt1.Y - pt2.Y), 2.0));
			}
			catch
			{
			}
			return 0;
		}
	}
}
